#!/usr/bin/python

import commands

(status, output) = commands.getstatusoutput('cat empty')
print output
print status

if status == 0:
	print "excute cmd success"
if output == "" and len(output)==0:
	print "output is empty"

(status, output) = commands.getstatusoutput('cat blanks')
print output
print status

if status == 0:
	print "excute cmd success"
if output.strip() == "":
	print "output is blank or empty, len: %d"%len(output)
